package com.ruoyi.project.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.system.mapper.BasicInformationMapper;
import com.ruoyi.project.system.domain.BasicInformation;
import com.ruoyi.project.system.service.IBasicInformationService;

/**
 * 基本信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-10-15
 */
@Service
public class BasicInformationServiceImpl implements IBasicInformationService 
{
    @Autowired
    private BasicInformationMapper basicInformationMapper;

    /**
     * 查询基本信息
     * 
     * @param id 基本信息主键
     * @return 基本信息
     */
    @Override
    public BasicInformation selectBasicInformationById(Long id)
    {
        return basicInformationMapper.selectBasicInformationById(id);
    }

    /**
     * 查询基本信息列表
     * 
     * @param basicInformation 基本信息
     * @return 基本信息
     */
    @Override
    public List<BasicInformation> selectBasicInformationList(BasicInformation basicInformation)
    {
        return basicInformationMapper.selectBasicInformationList(basicInformation);
    }

    /**
     * 新增基本信息
     * 
     * @param basicInformation 基本信息
     * @return 结果
     */
    @Override
    public int insertBasicInformation(BasicInformation basicInformation)
    {
        return basicInformationMapper.insertBasicInformation(basicInformation);
    }

    /**
     * 修改基本信息
     * 
     * @param basicInformation 基本信息
     * @return 结果
     */
    @Override
    public int updateBasicInformation(BasicInformation basicInformation)
    {
        return basicInformationMapper.updateBasicInformation(basicInformation);
    }

    /**
     * 批量删除基本信息
     * 
     * @param ids 需要删除的基本信息主键
     * @return 结果
     */
    @Override
    public int deleteBasicInformationByIds(Long[] ids)
    {
        return basicInformationMapper.deleteBasicInformationByIds(ids);
    }

    /**
     * 删除基本信息信息
     * 
     * @param id 基本信息主键
     * @return 结果
     */
    @Override
    public int deleteBasicInformationById(Long id)
    {
        return basicInformationMapper.deleteBasicInformationById(id);
    }
}
